package com.project.practice11_24.service.impl;

import com.project.practice11_24.bean.Student;
import com.project.practice11_24.mapper.IManMapper;
import com.project.practice11_24.mapper.IStudentMapper;
import com.project.practice11_24.service.IStudentService;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements IStudentService {
    protected IStudentMapper mapper;

    public void setMapper(IStudentMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    public void add(Student student) {
        mapper.add(student);
    }

    @Override
    public void del(int id) {
        mapper.del(id);
    }
}
